package com.yipinhouse.backstage.client;

import com.yipinhouse.backstage.client.param.LoginWebParam;
import com.yipinhouse.common.result.Result;
import com.yipinhouse.employee.client.param.LoginParam;
import com.yipinhouse.employee.client.result.BrokerInfoResult;
import com.yipinhouse.employee.client.result.PromotionResultInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "brokerInfoQueryBackClient",name="backstage",path = "backstage")
public interface BrokerInfoWebQueryClient {

    /**
     * 员工登录
     * @param account
     * @param password
     * @return
     */
    @GetMapping("login")
    public Result login(@RequestParam("account") String account,
                        @RequestParam("password") String password);

    /**
     * 获取员工个人信息
     * @return
     */
    @GetMapping("getBrokerInfo")
    Result<BrokerInfoResult> getBrokerInfo();




}
